package com.qinaxiwit.controller;

import com.netflix.discovery.converters.Auto;
import com.qianxi.wit.pojo.TbBankcard;
import com.qinaxiwit.service.TbBankcardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TbBankcardController {

    @Autowired
    private TbBankcardService bankcardService;

    //添加银行卡
    @PostMapping("/addbankcard")
    void addbankcard(@RequestBody TbBankcard bankcard){
        try {
            bankcardService.addbankcard(bankcard);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
